package com.wangxiaotao.Service;

import com.wangxiaotao.Dao.LoginDao;
import com.wangxiaotao.Pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LoginService {
    @Autowired
    LoginDao LoginDao;
    public List<User> queryByusername(String username){
        return LoginDao.queryByusername(username);
    }

    public void InsertUser(User user) {
        LoginDao.InsertUser(user);
    }
}
